<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" /> 
 <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
    <title>用户信息设置</title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="blog,图片,david" />
	<meta http-equiv="description" content="This is my web blog" /> 
<link href="<%=path %>/themes/css/index.css"    rel="stylesheet" type="text/css" />
<link href="<%=path %>/themes/css/pmanager.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/script/jquery.js" /> 
<script type="text/javascript">
function refrash(){
		$('#imgId')[0].src+='?'+Math.floor(Math.random()*10);
		}
</script>
</head>
<body>
 <%@ include file="../../../../common/header.jsp"%>
<div id="container">
<div id="mainbody">
  <div id="managerleftbody">
     <h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的设置</h2>
	  <ul>
	    <li class="lefttitle">信息设置</li>
	    <li><a href="<%=request.getContextPath()%>/userinfoset.do">基本信息</a></li>
	    <li>更换头像</li>
	   <li><a href="<%=request.getContextPath()%>/moreUserinfo.do">详细信息</a></li>
		 <li><a href="<%=request.getContextPath()%>/useraccount.do">帐户设置</a></li> 
	  </ul>
	  
	  <ul>
	    <li class="lefttitle">作品管理</li>
	   <li><a href="<%=request.getContextPath()%>/usertopicmanager.do">发布的作品</a></li>
	   <li><a href="<%=request.getContextPath()%>/usercollect.do">收藏的作品</a></li>
	   <li><a href="<%=request.getContextPath()%>/usercomment.do">评论的作品</a></li> 
	  </ul>
	   <ul>
	    <li class="lefttitle">站内动态</li>
	   <li><a href="javascript:alert('功能暂未启用')">全站动态</a></li>
		 <li><a href="javascript:alert('功能暂未启用')">我的好友</a></li>
	   <li><a href="javascript:alert('功能暂未启用')">好友动态</a></li>
	    
	  </ul>
  </div>
   <div id="managerrightbody">
	   <div class="ClassTitle">基本信息设置</div>
	   <form method="post" enctype="multipart/form-data" action="<%=path %>/updateUserface.do">
		<table>
		  <tr>
	       <input name="userPoto" id="userPoto" type="hidden" value="${user.userPoto}" />
	  <%
	   //这个地方报错不用管，因为在引用的header.jsp里面会把相关对象引进来
	   User user = (User)session.getAttribute(TuEyeConstant.TUEYE_USER);
	   %>      
	       <% if(user == null){
	        request.getRequestDispatcher("userlogin.jsp").forward(request,response);
	       }else{
                  if(user.getUserPoto()==null||"".equals(user.getUserPoto())){ 
           %> 
                 <td>头像:</td><td><img src="<%=path%>/pages/topics/usermanager/userphoto/userphoto.jpg" width="96" height="96" /></td>
           <% 
                  }else    
                {%> 
               <td>头像:</td><td><img alt="" src="<%=request.getContextPath() %>/pages/topics/usermanager/userphoto/<%=user.getUserPoto() %>" width="96" height="96" /></td>
           <%}}%> 
         
		   <td><input name="adpicture_site_local" id="adpicture_site_local" type="file"  size=24 /></td>
		  </tr>
		  
		  <tr>
		  
		   <td  colspan="2" align="center"><br /><input type="submit" value="更新"/></td>
		  </tr>
		</table>
		</form>
	</div>
 </div>
 </div>
<%@ include file="../../../../common/footer.jsp" %>
</body>
</html>

